import { ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty } from 'class-validator';

export class CreateTasksDto {
  @ApiProperty({ type: String, description: '标题', required: false })
  @IsNotEmpty()
  title: string;
  @ApiProperty({ type: String, description: '描述', required: false })
  @IsNotEmpty()
  description: string;
  @ApiProperty({
    type: Number,
    description: '删除标记 0-未删除 1-删除',
    default: 0,
    required: false,
  })
  isDelete: number;
}
